package com.rent.house.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 收藏实体类
 */
@ApiModel("收藏实体类")
@Data
@TableName("collection")
public class Collection extends Model<Collection> {

    @ApiModelProperty("收藏ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("房源ID")
    private Long houseId;

    @ApiModelProperty("创建时间")
    private Date createTime;
}
